package com.linkage.jz.bankruptcy.bean.Vote;

import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class ProVoteVoterMyGroup implements Serializable {

    private String id;
    private String name;
    private String meetingNumber;
    private String creditorId;
    private String meeting;
    private String vote;
    private double voteMoney;//TODO 金额 后续可以自己改类型

    public static List<ProVoteVoterMyGroup> parse(JsonArray arr) {
        List<ProVoteVoterMyGroup> list = new ArrayList<>();
        for (int i = 0; i < arr.size(); i++) {
            list.add(parse(arr.get(i).getAsJsonObject()));
        }
        return list;
    }

    public static ProVoteVoterMyGroup parse(JsonObject obj) {
        ProVoteVoterMyGroup bean = new Gson().fromJson(obj, ProVoteVoterMyGroup.class);
        return bean;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMeetingNumber() {
        return meetingNumber;
    }

    public void setMeetingNumber(String meetingNumber) {
        this.meetingNumber = meetingNumber;
    }

    public String getCreditorId() {
        return creditorId;
    }

    public void setCreditorId(String creditorId) {
        this.creditorId = creditorId;
    }

    public String isMeeting() {
        return meeting;
    }

    public void setMeeting(String meeting) {
        this.meeting = meeting;
    }

    public String isVote() {
        return vote;
    }

    public void setVote(String vote) {
        this.vote = vote;
    }

    public double getVoteMoney() {
        return voteMoney;
    }

    public void setVoteMoney(double voteMoney) {
        this.voteMoney = voteMoney;
    }
}
